﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adminaq/Adminpage.Master" AutoEventWireup="true"
    CodeBehind="AQAddNewProject.aspx.cs" Inherits="ToolwebAQ.adminaq.AQAddNewProject" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script>
        $(function () {
            $("#<%=txtDeadline.ClientID%>").datepicker();
        });
    </script>
    <div class="content-box">
        <div class="box-header clear">
            <h2>
                ĐĂNG KÝ PROJECT
            </h2>
        </div>
        <div class="box-body clear">
            <div id="forms">
                <div class="form">
                    <table width="100%">
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    TÊN DỰ ÁN:</label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtProjectName" runat="server" class="text fl" name="" onfocus="if(this.value=='Project name')this.value=''"
                                    onblur="if(this.value=='')this.value='Project name'" Text="Tên dự án" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    KHÁCH HÀNG:</label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList1" CssClass="fl" runat="server" Width="170px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    C.S:
                                </label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtCSName" runat="server" class="text fl" name="" onfocus="if(this.value=='C.S')this.value=''"
                                    onblur="if(this.value=='')this.value='C.S'" Text="C.S" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    DESIGNER:
                                </label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtDesignerName" class="text fl" name="" onfocus="if(this.value=='Designer')this.value=''"
                                    onblur="if(this.value=='')this.value='Designer'" Text="Designer" runat="server"
                                    Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    MÔ TẢ:
                                </label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtDescription" runat="server" class="text fl" name="" onfocus="if(this.value=='Mô tả')this.value=''"
                                    onblur="if(this.value=='')this.value='Mô tả'" Text="Mô tả" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    BƯỚC KẾ:
                                </label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtNextTeps" runat="server" class="text fl" name="" onfocus="if(this.value=='Bước tiếp theo')this.value=''"
                                    onblur="if(this.value=='')this.value='Bước tiếp theo'" Text="Bước tiếp theo"
                                    Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    THỜI GIAN:
                                </label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    DEAD LINE:
                                </label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxDateEdit ID="txtDeadline" class="text fl" runat="server">
                                </dx:ASPxDateEdit>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="textfield" class="form-label fl-space2">
                                    File đính kèm:
                                </label>
                                <span style="color: Red">*</span>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtAttachFile" class="text fl" runat="server" Width="170px">
                                </dx:ASPxTextBox>
                                <span>
                                    <asp:ImageButton ID="Img_attach" ImageUrl="images/attach.png" runat="server" Visible="true" /></span>
                                <script type="text/javascript">
                                    var cuload = "true"
                                    setInterval(function () {

                                        $.ajax({
                                            type: "GET",
                                            url: "loadimg.aspx?type=get",
                                            success: function (data) {
                                                $('#listhinh').html(data);
                                            }
                                        })

                                    }, 1000)
                                    function clearhinh(objindex) {
                                        $.ajax({
                                            type: "GET",
                                            url: "loadimg.aspx?type=clear&id=" + objindex,
                                            success: function () {

                                            }
                                        })
                                        return false;
                                    }
                                </script>
                            </td>
                        </tr>
                    </table>
                    <div class="form-field clear">
                    </div>
                    <div class="notification note-attention" id="tb" visible="false" runat="server">
                        <a href="#" class="close" title="Close notification"><span>close</span></a> <span
                            class="icon"></span>
                        <p>
                            <strong>Thông báo:</strong><asp:Label ID="Lbl_thongbaomoi" runat="server" Text=""></asp:Label></p>
                    </div>
                    <div class="form-field clear">
                        <asp:Button ID="Bnt_insert" CssClass="submit fr" runat="server" Text="Update" />
                    </div>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                        ShowSummary="False" />
                </div>
            </div>
        </div>
    </div>
</asp:Content>
